﻿namespace FDSimpleModelGenerator.Entities
{
    /// <summary>
    /// 表列
    /// </summary>
    public class TableColumn
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 列类型
        /// </summary>
        public string ColumnType { get; set; }

        /// <summary>
        /// 长度（nvarchar(50),decimal(18,5)
        /// </summary>
        public int Length { get; set; }

        /// <summary>
        /// 小数精度
        /// </summary>
        public int Precision { get; set; }

        /// <summary>
        /// 是否主键
        /// </summary>
        public bool Key { get; set; }

        /// <summary>
        /// 列描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 无符号类型
        /// </summary>
        public bool Unsigned { get; set; }
    }
}
